package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品入库对象 drug_in
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public class DrugIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品编号 */
    @Excel(name = "药品编号")
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 入库单号 */
    private String drugBill;

    /** 厂家名称 */
    @Excel(name = "厂家名称")
    private String factoryName;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long purchaseQuantity;

    /** 类型 */
    @Excel(name = "类型")
    private String typeName;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timeIn;

    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setDrugBill(String drugBill) 
    {
        this.drugBill = drugBill;
    }

    public String getDrugBill() 
    {
        return drugBill;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setPurchaseQuantity(Long purchaseQuantity) 
    {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Long getPurchaseQuantity() 
    {
        return purchaseQuantity;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTimeIn(Date timeIn) 
    {
        this.timeIn = timeIn;
    }

    public Date getTimeIn() 
    {
        return timeIn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("drugBill", getDrugBill())
            .append("factoryName", getFactoryName())
            .append("purchaseQuantity", getPurchaseQuantity())
            .append("typeName", getTypeName())
            .append("timeIn", getTimeIn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
